home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
A.D. Software
/
OOFGraph
/
Application Source
/
studenttest.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-10
|
885b
|
39 lines
#include "studenttest.hpp"
#ifdef OOF_SmartHeap
#include "smrtheap.hpp"
#endif
void dbStudent::Add(const char *name, const char *subject, const long mark)
{
newRecord();
Name = name;
Subject = subject;
Mark = mark;
saveRecord();
}
void dbStudent::AddTestData()
{
Add("Alice Chan", "Maths", 62);
Add("Alice Chan", "Social Studies", 72);
Add("Alice Chan", "English", 65);
Add("Alice Chan", "Science", 82);
Add("Kathy Robins", "Maths", 82);
Add("Kathy Robins", "Social Studies", 54);
Add("Kathy Robins", "English", 44);
Add("Kathy Robins", "Science", 75);
Add("Brett Baker", "Maths", 65);
Add("Brett Baker", "Social Studies", 78);
Add("Brett Baker", "English", 64);
Add("Brett Baker", "Science", 72);
Add("Jack Smith", "Maths", 71);
Add("Jack Smith", "English", 56);
Add("Jack Smith", "Science", 81);
Add("Jack Smith", "Social Studies", 35);
}